package com.zy.mc_module.mvp.contract;

import com.zy.mc_module.mvp.base.BaseModel;
import com.zy.mc_module.mvp.base.IView;
import com.zy.mc_module.mvp.bean.BaseBean;
import com.zy.mc_module.mvp.bean.UserBean;
import io.reactivex.Observable;
import okhttp3.ResponseBody;

/**
 * Created on 18/12/1
 */
public interface SetPwdContract {
    interface View extends IView {
        //设置密码成功
        void onSetPwdSuccess(UserBean userBean);

        <T> void onSuccess(T t, int type);
    }

    interface Model extends BaseModel {
        /***
         * 新用户设置密码
         */
        Observable<ResponseBody> setPwd(Object... objects);
        Observable<BaseBean<Boolean>> H5SetPassword(Object... objects);
    }
}
